package cn.power.win.win_power.utils;


import com.chad.library.adapter.base.BaseItemDraggableAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import cn.power.win.win_power.Device;
import cn.power.win.win_power.R;

/*
* 可以拖拉删除的适配器
*
* */
public class ItemDragAdapter extends BaseItemDraggableAdapter<Device, BaseViewHolder> {
    public ItemDragAdapter( List<Device> data) {
        super(R.layout.item_draggable_view, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Device item) {
        helper.setText(R.id.tv_name,item.getId() );
        helper.addOnClickListener(R.id.tv_name);
       // helper.addOnClickListener()


     //   helper.addOnLongClickListener(R.id.ll);

    }
}
